package cn.xiaoyu.fastec;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;

import cn.xiaoyu.snake.delegates.SnakeDelegate;
import cn.xiaoyu.snake.net.RestClient;
import cn.xiaoyu.snake.net.callback.IFailure;
import cn.xiaoyu.snake.net.callback.IRequest;
import cn.xiaoyu.snake.net.callback.ISuccess;

/**
 * Created by fengzhe on 2017/7/18.
 */

public class DelegateSample extends SnakeDelegate {
    @Override
    public Object setLayout() {
        return R.layout.activity_main;
    }

    @Override
    public void onBindView(@Nullable Bundle savedInstanceState, View rootView) {

    }

    private void testRestClient() {
        RestClient.builder().url("").params("", "").success(new ISuccess() {
            @Override
            public void onSuccess(String response) {

            }
        }).failure(new IFailure() {
            @Override
            public void onFailure() {

            }
        }).request(new IRequest() {
            @Override
            public void onRequestStart() {

            }

            @Override
            public void onRequestEnd() {

            }
        }).build();
    }
}
